package com.gateway.common.constants;

/**
 * 通用常量信息
 * @author Huangkai
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 自动去除表前缀
     */
    public static String AUTO_REOMVE_PRE = "true";

    /**
     * 当前记录起始索引
     */
    public static String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static String IS_ASC = "isAsc";

    /**
     * ,分隔符
     */
    public static String DELIMITER_COLON = ",";
    /**
     * :分隔符
     */
    public static String MAOHAO_SEGMENTATION = ":";

    /**
     * http
     */
    public static String HTTP = "http";

    /**
     * https
     */
    public static String HTTPS = "https";

    /**
     * 字符串数字 0~11
     */
    public final static String STR_ZERO = "0";

    public final static String STR_ONE = "1";
    public final static String STR_TWO = "2";
    public final static String STR_THREE = "3";
    public final static String STR_FOUR = "4";
    public final static String STR_FIVE = "5";
    public final static String STR_SIX = "6";
    public final static String STR_SEVEN = "7";
    public final static String STR_EIGHT = "8";
    public final static String STR_NINE = "9";
    public final static String STR_TEN = "10";
    public final static String STR_ELEVEN = "11";
    public final static String STR_500 = "500";
    public final static String STR_200 = "200";

    /**
     * 数字 0~11
     */
    public final static Integer NUM_ZERO = 0;

    public final static Integer NUM_ONE = 1;
    public final static Integer NUM_TWO = 2;
    public final static Integer NUM_THREE = 3;
    public final static Integer NUM_FOUR = 4;
    public final static Integer NUM_FIVE = 5;
    public final static Integer NUM_SIX = 6;
    public final static Integer NUM_SEVEN = 7;
    public final static Integer NUM_EIGHT = 8;
    public final static Integer NUM_NINE = 9;
    public final static Integer NUM_TEN = 10;
    public final static Integer NUM_ELEVEN = 11;
    public final static Integer NUM_500 = 500;
    public final static Integer NUM_200 = 200;

    /**
     * code
     */
    public final static String CODE = "code";

    /**
     * message
     */
    public final static String MESSAGE = "message";

    /**
     * traceId
     */
    public final static String TRACE_ID = "traceId";

}
